package models

const (
	OrderTime  = "time"
	OrderScore = "score"
)

// 定义请求的参数结构体
// 注册参数
type ParamSignUP struct {
	Username   string `json:"username" binding:"required"` //用户名
	Password   string `json:"password" binding:"required"` //密码
	RePassword string `json:"repassword" binding:"required,eqfield=Password"` //确认密码
}

// 登录请求参数
type ParamLogin struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type ParamPostList struct {
	CommunityID int64 `form:"community_id"`
	Page  int64  `form:"page"`
	Size  int64  `form:"size"`
	Order string `form:"order"`
}


